package cmd

import (
	"gitee.com/go-course/go11/vblog/cmd/start"
	"github.com/spf13/cobra"
)

// 执行命令
func Execute() error {
	return rootCmd.Execute()
}

// root command
var rootCmd = &cobra.Command{
	Use:   "vblog-api",
	Short: "vlog项目后端",
	Long:  ``,
	Run: func(cmd *cobra.Command, args []string) {
		// 命令具体的执行逻辑

		cmd.Help()
	},
}

func init() {
	// 子command完成注册
	rootCmd.AddCommand(start.Cmd)
}
